function showMenu(obj,treeId) {
	$("#"+treeId).css({width:$(obj).width()+10});
	$("#"+treeId).toggle();
}

function getSetting(options){
	 var setting = {
				async: {
					enable: true,
					autoParam:["id"],
					url:"organ/tree"
				},
				data: {
					key: {
						name:'codeName'
					},
					simpleData: {
						enable: true,
						idKey: "id",
						pIdKey: "parentId",
						rootPId: 0
					}
				}
			};
	 $('.ztree_public').bgiframe();
	 $('.dtree_p').append("<span class='ztree_pic'></span>");
	 $(".ztree_pic").hide();
	 $.extend(setting,options);
	 return setting;
}